Skip to content

Conversation

@Sandesh282
Copy link

Description

Fixes #1072

This PR updates the Ebook search bar to use theme-aware color variables, making the placeholder and input text readable in both light and dark modes.

Type of Change

  • UI/UX improvement (design, layout, or styling updates)

Changes Made

  • Updated index.css to make .ebook-search and its placeholder use var(--ifm-color-base) and var(--ifm-color-gray-700) dynamically.
  • Ensured proper contrast in dark mode.

Dependencies

  • No new dependencies.

Checklist

  • My code follows the style guidelines of this project.
  • I have tested my changes across major browsers and devices.
  • My changes do not generate new console warnings or errors.
  • I ran npm start and verified the changes.
  • This PR is linked to an assigned issue.

@vercel
Copy link
Contributor

vercel bot commented Oct 25, 2025

Someone is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions bot added hacktoberfest-accepted recode this is label for leaderboard level 1 10 points labels Oct 25, 2025
@github-actions
Copy link

✅ Synchronized metadata from Issue #1072:

  • Labels: level 1, recode, hacktoberfest-accepted
  • Milestone: None


.ebook-search-wrapper input.ebook-search::placeholder {
color: var(--ifm-color-gray-700);
color: var(--ifm-color-muted);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
color: var(--ifm-color-muted);
color: var(--ifm-color-content-secondary);

The CSS variable --ifm-color-muted used for the placeholder color doesn't exist in Docusaurus v3. This will cause the placeholder text color to fall back to browser defaults, breaking the intended dark/light theme support.

View Details

Analysis

Undefined CSS variable --ifm-color-muted breaks theme-aware placeholder color

What fails: Ebook search placeholder in src/pages/ebooks/index.css line 71 uses undefined --ifm-color-muted variable, causing placeholder text to fall back to browser defaults instead of Docusaurus theme colors

How to reproduce:

# Inspect the ebook search placeholder color in browser DevTools
npm run build && npm run serve
# Navigate to /ebooks page and inspect the search input placeholder

Result: Placeholder text color ignores dark/light theme switching and uses browser default gray instead of theme-appropriate colors

Expected: Placeholder should use theme-aware colors that adapt to light/dark mode like other UI elements

Root cause: --ifm-color-muted is not defined in Docusaurus v3 Infima CSS variables. Verified by examining node_modules/infima/dist/css/default/default.css - only --ifm-color-content-secondary (#525860) exists for secondary text content.

@vercel
Copy link
Contributor

vercel bot commented Oct 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
recode-website Ready Ready Preview Comment Oct 26, 2025 9:22am

@sanjay-kv sanjay-kv moved this to In Progress in @recode-web Oct 26, 2025
@sanjay-kv sanjay-kv added this to the recode:launch 3.0 milestone Oct 26, 2025
@sanjay-kv sanjay-kv merged commit efd86a2 into recodehive:main Oct 26, 2025
8 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in @recode-web Oct 26, 2025
@sanjay-kv sanjay-kv added level 2 30 points and removed level 1 10 points labels Oct 26, 2025
@kanishka-commits
Copy link
Contributor

@sanjay-kv
I just wanted to clarify that this issue (#1072) was assigned to me, so I believe I should be the one to raise the PR. It might be better if contributors wait until an issue is officially assigned before submitting a fix, to avoid overlap or possible confusion.

@sanjay-kv
Copy link
Member

You can raise

@kanishka-commits
Copy link
Contributor

You can raise

Sure, Thankyou.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted level 2 30 points recode this is label for leaderboard

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐞[Bug]: Explore Ebooks Search Bar Text Color Not Responsive to Theme

3 participants